package com.cbh.binlog.link.impl;

import com.cbh.binlog.entity.BinaryLogEventCallback;
import com.cbh.binlog.link.BinaryLogEventListener;
import com.github.shyiko.mysql.binlog.event.EventType;

/**
 * Binlog事件监听器 抽象实现
 *
 * @author ChenBiHui
 * @date 2025/1/16
 */
public abstract class AbstractBinaryLogEventListener implements BinaryLogEventListener {

    private BinaryLogEventListener next;

    @Override
    public final void setNext(BinaryLogEventListener callback) {
        this.next = callback;
    }

    @Override
    public final BinaryLogEventListener next() {
        return this.next;
    }

    @Override
    public final void process(EventType eventType, String schema, String table, BinaryLogEventCallback callback) {
        BinaryLogEventListener.super.process(eventType, schema, table, callback);
    }
}
